package com.bestcem.xm.member.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.member.mq.message.MemberSliceMessage;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 推送联系人服务
 * @date 2021-07-19
 */
public interface SendMemberService {
    /**
     * 推送联系人
     */
    String publishMemberSlices();

    /**
     * 推送单个企业的联系人
     *
     * @param orgId
     * @param transactionId
     * @return
     */
    int publishOrgMemberSlices(String orgId, String transactionId);

    /**
     * 推送联系人
     *
     * @param memberSlice
     * @return
     */
    ServiceResult<Void> sendMembers(MemberSliceMessage memberSlice);
}
